//
//  LJCBaseModel.m
//  WZLProduct
//
//  Created by 陆静聪 on 16/3/18.
//  Copyright © 2016年 HaiTeng. All rights reserved.
//

#import "LJCBaseModel.h"

@implementation LJCBaseModel

- (instancetype)initWithModel:(NSDictionary *)dic {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

+ (instancetype)baseModelWithModel:(NSDictionary *)dic {
    // [self class]
    return [[[self class] alloc] initWithModel:dic];
}

+ (NSMutableArray *)modelHandleWithModel:(NSArray *)array {
    NSMutableArray *arrModel = [NSMutableArray array];
    for (NSDictionary *dic in array) {
        id model = [[self class] baseModelWithModel:dic];
        [arrModel addObject:model];
    }
    return arrModel;
}




@end
